package cn.sfrog.project.biz.web.vo.websocket;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@ApiModel(description = "聊天会话返回VO")
public class AppConversationResultVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("发送者userId")
    private Long sendUserId;

    @ApiModelProperty("接收者userId")
    private Long receiveUserId;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("头像")
    private String avatar;

//    @ApiModelProperty("最新消息信息")
//    private AppLastMessageResultVO lastMessageVO;

    @ApiModelProperty("最新消息")
    private String lastMessage;

    @ApiModelProperty("消息类型【1=文字 2=图片 3=文件】")
    private String type;

    @ApiModelProperty("最新消息发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("未读数量")
    private Integer unReadCount;

    @ApiModelProperty("发送者未读数量")
    private Integer sendUnreadCount;

    @ApiModelProperty("接受者未读数量")
    private Integer receiveUnreadCount;
}
